package fun.shuofeng.myspringmvc.utils;

import fun.shuofeng.myspringmvc.annotaion.RequestMapping;

import java.lang.reflect.Method;

/**
 * @author 朔风
 * @date 2023-11-09 09:52
 */

public class MappingInfo {
    private RequestMapping requestMapping;
    private Method method;

    public MappingInfo(RequestMapping requestMapping, Method method) {
        this.requestMapping = requestMapping;
        this.method = method;
    }

    @Override
    public String toString() {
        return "MappingInfo{" +
                "requestMapping=" + requestMapping +
                ", method=" + method +
                '}';
    }

    public RequestMapping getRequestMapping() {
        return requestMapping;
    }

    public void setRequestMapping(RequestMapping requestMapping) {
        this.requestMapping = requestMapping;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }
}
